<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

        function reg()
        {
             $q = Doctrine_Query::create()->select('t.test2')->from('Test t')->orderBy('t.test2 DESC')->fetchOne();

            $count = $q->test2+1;

            $c = new Test();
            $c->test = "refreshas $count";
            $c->test2 = $count;
            $c->save();



            echo $c->test;
        }

	function index()
	{

     //čia prisilietė simas

            $this->load->view('testukas');
           

    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */